package com.cyq.day14.classWork3;

import java.util.Scanner;

public class PickHero {
    public Hero pickHero(){
        Hero hero=new Hero();
        Scanner scanner=new Scanner(System.in);
        System.out.println("请选择你的英雄1.德玛西亚之力2.诺克萨斯之手3.离群之刺4.无极剑圣");
        int input=scanner.nextInt();
        if (input==1){
           hero.name="德玛西亚之力";
           hero.atk=20;
           hero.hp=300;
           hero.mp=100;
        }else if (input==2){
            hero.name="诺克萨斯之手";
            hero.atk=25;
            hero.hp=280;
            hero.mp=100;
        } else if (input==3){
            hero.name="离群之刺";
            hero.atk=15;
            hero.hp=200;
            hero.mp=300;
        }else if (input==4){
            hero.name="无极剑圣";
            hero.atk=40;
            hero.hp=150;
            hero.mp=100;
        }
        return hero;
    }
}
